// 适老化改造档案
const dpReformMode = (request) => {
	return {
		view_dpElderlyRemould_view(id) {
			return request(`/bussiness/dpElderlyRemould/${id}`, {
				method: 'get',
			})
		},
		view_dpElderlyRemould_page(query = {}) {
			return request('/bussiness/dpElderlyRemould/page', {
				method: 'post',
				data: query,
			})
		},
		view_dpElderlyRemould_add(query = {}) {
			return request('/bussiness/dpElderlyRemould/add', {
				method: 'post',
				data: query,
			})
		},
		view_dpElderlyRemould_edit(query = {}) {
			return request('/bussiness/dpElderlyRemould/edit', {
				method: 'post',
				data: query,
			})
		},
		// 导入
		view_dpElderlyRemould_import(query = {}, onUploadProgress) {
			return request('/bussiness/dpElderlyRemould/import', {
				method: 'post',
				headers: {
					'Content-Type': 'multipart/form-data; boundary=something',
				},
				onUploadProgress,
				data: query,
			})
		},
		// 导入模板下载
		view_dpElderlyRemould_downloadTemplate(query = {}) {
			return request('/bussiness/dpElderlyRemould/downloadTemplate', {
				method: 'post',
				responseType: 'blob',
				data: query,
			})
		},
		view_dpElderlyRemould_export(query = {}) {
			return request('/bussiness/dpElderlyRemould/export', {
				method: 'post',
				data: query,
			})
		},
		view_dpElderlyRemould_del(ids) {
			return request('/bussiness/dpElderlyRemould/del', {
				method: 'post',
				data: {
					batchesDel: ids,
				},
			})
		},
		// 适老化全字段
		view_dpElderlyRemould_search(query = {}) {
			return request('/bussiness/dpElderlyRemould/search', {
				method: 'post',
				data: query,
			})
		},
	}
}
export default ({ request }: any) => ({
	...dpReformMode(request),
})
